package com.kevin.food.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;

import com.kevin.entity.FoodPo;
import com.kevin.food.dao.FoodMapper;
import com.kevin.food.service.IFoodService;

@Service("foodService")
public class FoodServiceImpl implements IFoodService{
	
	@Autowired
	private FoodMapper foodMapper;

	@Override
	@Cacheable(value="foodList")
	public List<FoodPo> queryList(Map<String, Object> params) {
		return foodMapper.selectList();
	}

}
